package com.laxcen.controller2;//package com.laxcen.smoke.controller;
//
//import com.laxcen.smoke.dto.req.RemoteOpenDoorReq;
//import com.laxcen.smoke.dto.req.VerifyReq;
//import com.laxcen.smoke.service.RemoteService;
//import com.laxcen.smoke.util.Response;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Api(tags = "远程管理")
//@RestController
//@RequestMapping("/remote")
//public class RemoteOpController {
//
//    @Autowired
//    private RemoteService remoteService;
//
//    @ApiOperation(value = "选定指定设备和格子远程开门操作",notes =
//            "请求信息： \n" +
//                    "&emsp; smartno &nbsp; : &nbsp; 智能柜编号 \n" +
//                    "&emsp; boxno &nbsp; : &nbsp; 格子唯一编号 \n" +
//                    "返回码： \n" +
//                    "&emsp; 200 &nbsp; : &nbsp; 成功  \n" +
//                    "&emsp; 500 &nbsp; : &nbsp; 服务器错误  ")
//    @PostMapping(value = "/opendoor")
//    public Response opendoor(@RequestBody RemoteOpenDoorReq remoteOpenDoorReq ){
//        return remoteService.closeDoor(remoteOpenDoorReq.getSmartno(),remoteOpenDoorReq.getBoxno(),remoteOpenDoorReq.getOrderno());
//    }
//
//}
